# -*- coding: utf-8 -*-
# File : log_util.py
# Author: taoyahui
# Date : 2021/8/2
from loguru import logger
from utils import common_util

logger.add('runtime.log', retention='7 days')

# log_path = common_util.get_log_path()
# logger.add(log_path, format="{time:YYYY-MM-DD} | {level} | {message}")
# def get_logger():
#     return logger


# class MyLogger():
#     def __init__(self):
#         log_path = common_util.get_log_path()
#         logger.add(log_path, format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}")
